using DealerPlatform.Common.Md5Module;
using DealerPlatform.Service.CustomerApp.Dtos;

namespace DealerPlatform.Service.CustomerApp;

public partial class CustomerService
{
    public async Task<bool> CheckPassword(CustomerLoginDto dto)
    {
        var res = await customerPwdRepository.GetAsync(x => x.CustomerNo == dto.CustomerNo
                                                            && x.CustomerPwd1 == dto.Password.ToMd5());
        return res != null;
    }
}